package org.gxuwz.core.service.Impl;

import java.util.List;

import org.gxuwz.core.dao.IFamilyFilesDao;
import org.gxuwz.core.entity.TFamily;
import org.gxuwz.core.service.IFamilyFilesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("FamilyFilesService")
public class FamilyFilesService implements IFamilyFilesService{
	
	@Autowired
	IFamilyFilesDao filesDao;
	
	
	@Override
	public void addFamilyFilesDao(TFamily files) {
		filesDao.addFamilyFilesDao(files);
		
	}

	@Override
	public List<TFamily> getAll(String houseName, String perscode) {
		return filesDao.getAll(houseName, perscode);
		
	}

	@Override
	public TFamily getByPersCode(String code11) {
		return filesDao.getByPersCode(code11);
	}

	@Override
	public void update(TFamily files) {
		
		filesDao.update(files);
	}

	@Override
	public void delete(TFamily files) {
		filesDao.delete(files);		

	}

}
